<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/30
 * Time: 11:04
 */

namespace vendor\core;

//引入其它类
require 'order.php';

//继承 extends
class commonOrder extends order
{
    //静态属性
    public static $add;
    //静态方法
    public static function setAdd($add){
        //调用静态属性
        commonOrder::$add=$add;
    }


    // 方法重写  调用父类的构造方法和普通方法
    public function __construct($user_id, $order_id)
    {
        parent::__construct($user_id, $order_id);
        echo '调用父类的构造方法';
    }

    public function create()
    {
        parent::create(); // TODO: Change the autogenerated stub
        echo '调用父类的普通方法';
    }


}